<%@page import="java.security.interfaces.RSAKey"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GrowingTree</title>
<link rel="stylesheet" type="text/css"
	href="all/lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="all/stylesheets/theme.css">
<link rel="stylesheet" href="all/lib/font-awesome/css/font-awesome.css">
<script src="all/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body class="">
	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">
				<li><a href="#"
					class="hidden-phone visible-tablet visible-desktop" role="button">设置</a></li>
			</ul>
			<a class="brand" href="index.html"><span class="first">Growing</span>
				<span class="second">Tree</span></a>
		</div>
	</div>
	<div class="sidebar-nav">
		<li id="fat-menu" class="dropdown"><a href="#" role="button"
			class="dropdown-toggle" data-toggle="dropdown"> <i
				class="icon-user"></i> 管理员已登录 <%=session.getAttribute("loginName")%>
		</a> <a href="login.jsp">注销</a>
			<form class="search form-inline"></form> <a href="#index-menu"
			class="nav-header" data-toggle="collapse"></a><a
			href="/GrowingTree/information" class="nav-header"> <i
				class="icon-dashboard"></i>首页
		</a> <a href="#manage-menu" class="nav-header" data-toggle="collapse"><i
				class="icon-dashboard"></i>系统管理</a>
			<ul id="manage-menu" class="nav nav-list collapse in">
				<li><a href="/GrowingTree/teacherAccount">老师管理</a></li>
				<li><a href="/GrowingTree/parentAccount">家长管理</a></li>
				<li><a href="/GrowingTree/classAccount">班级管理</a></li>
			</ul> <a href="#message-menu" class="nav-header" data-toggle="collapse">
				<i class="icon-dashboard"></i>通知管理
		</a>
			<ul id="message-menu" class="nav nav-list collapse in">
				<li><a href="school-message.jsp">校方通知</a></li>
			</ul> <a href="#accounts-menu" class="nav-header" data-toggle="collapse"></a>
			<a href="reset-password.jsp" class="nav-header"> <i
				class="icon-briefcase"></i>重置密码
		</a> <a href="#help-menu" class="nav-header" data-toggle="collapse"></a> <a
			href="/GrowingTree/help.jsp" class="nav-header"> <i
				class="icon-question-sign"></i>帮助
		</a>
	</div>
	<div class="content">
		<div class="header">
			<h1 class="page-title">老师管理</h1>
		</div>
		<ul class="breadcrumb">
			<li><a href="/GrowingTree/index.jsp">首页</a> <span
				class="divider">/</span></li>
			<li class="active">所有老师</li>
		</ul>
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="btn-toolbar">
					<div class="btn-group STYLE1">
						<strong>老师 </strong>
					</div>
				</div>
				<div class="well">
					<form class="search form-inline" name="QueryTeacher" method="post"
						action="showCertainTeacher">
						请输入要查询的老师姓名：<input type="text" placeholder="Search..."
							name="showT"> <input type="submit" value="查询"
							style="width: 114px; ">
					</form>
					<form method="post">
						<table class="table">
							<thead>
								<tr>
									<th>教师工号</th>
									<th>教师账号</th>
									<th>教师姓名</th>
									<th>手机号码</th>
									<th style="width: 26px;"></th>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="teacherAccount" items="${pageBean2.list}">
									<tr>
										<td>${teacherAccount.userId }</td>
										<td>${teacherAccount.userName }</td>
										<td>${teacherAccount.teacherName }</td>
										<td>${teacherAccount.teacherPhoneNumber }</td>
										<td><a
											href="/GrowingTree/showCertainTeacher3?showT=${teacherAccount.teacherName}"><i
												class="icon-pencil"></i></a> <a
											href="/GrowingTree/deleteTeacher?teacherId=${teacherAccount.userId}"
											data-toggle="modal"><i class="icon-remove"></i></a></td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</form>
				</div>
				<div class="pagination">
					当前是第${pageBean2.pageCode}页,共${pageBean2.allPages}页.
					<c:forEach var="code" begin="1" end="${pageBean2.allPages}">
						<a href="/GrowingTree/teacherAccount?pc=${code}">[${code}]</a>
					</c:forEach>
				</div>
				<div class="modal small hide fade" id="myModal" tabindex="-1"
					role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-body">
						<p class="error-text">
							<i class="icon-warning-sign modal-icon"></i>是否删除此用户?
						</p>
					</div>
					<div class="modal-footer">
						<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
						<button class="btn btn-danger" data-dismiss="modal">删除</button>
					</div>
				</div>
				<footer>
					<hr>
					<p class="pull-right">
						<a href="http://www.growingtree.com" target="_blank">growingtree.com</a>by
						Gem
					</p>
				</footer>
			</div>
		</div>
	</div>
	<script src="lib/bootstrap/js/bootstrap.js"></script>
	<script type="text/javascript">
		$("[rel=tooltip]").tooltip();
		$(function() {
			$('.demo-cancel-click').click(function() {
				return false;
			});
		});
	</script>
</body>
</html>


